package tech.aister.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.aister.pojo.Book;

import java.util.List;

@Mapper
public interface BookMapper {

	public List<Book> getAll();
	public List<Book> getAllByCategory(@Param("category_id")String category_id);
	public List<Book> query(Book book);

	public Book findById(@Param("id")String id);

	public void add(Book book);
	public void delete(@Param("id")String id);
	public void update(Book book);


}
